import { MessageBox } from 'element-ui'


export const res_data = function(res) {
    if (res.code === 1) {
        MessageBox({ type: "success", message: res.data });
        this.reload();
    } else {
        this.$message({ type: "error", message: res.msg });
    }
}


export { res_data }